package com.koron.css2.clientCenter.mapper;

import com.koron.css2.clientCenter.bean.UnionInfoBean;
import com.koron.css2.clientCenter.bean.UnionInfoDetailBean;
import com.koron.css2.clientCenter.bean.UserBean;
import com.koron.css2.clientCenter.queryBean.UnionInfoQueryBean;

import java.util.List;

public interface UnionInfoMapper {
    /**
     * 查询
     * @param queryBean
     * @return
     */
    List<UnionInfoBean> queryList(UnionInfoQueryBean queryBean);

    /**
     * 新增
     * @param unionInfoBean
     * @return
     */
    int add(UnionInfoBean unionInfoBean);

    /**
     * 修改
     * @param unionInfoBean
     * @return
     */
    int update(UnionInfoBean unionInfoBean);

    /**
     * 删除
     * @param unionInfoBean
     * @return
     */
    int delete(UnionInfoBean unionInfoBean);

    /**
     * 根据union_no查询user_no
     * @param unionNo
     * @return
     */
    List<String> userNoQueryList(String unionNo);

    /**
     * 根据union_no查询user_info
     * @param unionNo
     * @return
     */
    List<UserBean> userQueryList(String unionNo);

    /**
     * 修改user_info表union_no
     * @param detailBean
     * @return
     */
    int unionInfoDeatilUpdate(UnionInfoDetailBean detailBean);

    /**
     * 查询
     * @param id
     * @return
     */
    UnionInfoBean queryById(String id);

}
